from django.urls import re_path,path
from . import views
from django.views.generic import RedirectView
app_name='myapp'
urlpatterns =[
    #添加带有字符类型、整型和slug的路由
    path('yun/',views.yun,name='yun'),
    path('sum/<int:sum1>/<int:sum2>/',views.jia,name='jia'),
    path('post-<int:post_id>/',views.post,name='post'),
    path('redirect/',views.yunlin_view,name='shuhan_view'),
    path('redirect-home/',RedirectView.as_view(url='/',permanent=True),name='rediect-home'),
]


